﻿@using brand.cyt369.com.MODELS
@{
    IQueryable<brand.cyt369.com.models.HotBrand> hotBrandTop36 = ViewBag.hotBrandTop36 as IQueryable<brand.cyt369.com.models.HotBrand>;
}
<!-- 热门模块的顶部 -->
<div class="hot-top">
    <!-- 模块顶部的左边 -->
    <div class="hot-top-left">
        <!-- log地方 -->
        <i></i>
        <span>热门加盟</span>
    </div>
    <!-- 模块顶部的右边 -->
    <div class="hot-top-right">
        <ul class="hot-top-right-ul">
            <li>
                <a href="#">xxx烤肉</a>
            </li>
            <em>|</em>
            <li>
                <a href="#">xxx火锅</a>
            </li>
            <em>|</em>
            <li>
                <a href="#">xxxx炒饭</a>
            </li>
            <em>|</em>
            <li>
                <a href="#">xxxx炒饭</a>
            </li>
            <em>|</em>
        </ul>

        <p class="hot-top-right-more">
            <a href="~/Search/Index/@Base64.ObjectToBase64(new {  page=1})" target="_blank">更多+</a>
        </p>

    </div>
</div>

<!-- 热门模块的内容d -->
<div class="hot-content defultBorder">
    <!-- 图片列表的商家样式 -->
    <div class="hot-content-one">
        <div class="hot-content-one-letf fl">
            @if (hotBrandTop36 != null&&hotBrandTop36.Count()>1)
            {
                var list = hotBrandTop36.ToList();
                <a href="Brand/Index/@Base64.ObjectToBase64(new { id = list[0].BrandID })" target="_blank">
                    <img src="@string.Format("{0}/{1}",brand.cyt369.com.utility.SystemSettingService.Instance.BrandInternalBucket.HttpURL,list[0].Brand.BrandImages[0].ImagePath)" alt="" style="display: inline;">
                </a>
            }
        </div>
        <div class="hot-content-one-right fr">
            <ul>
                @if (hotBrandTop36 != null)
                {
                    var list = hotBrandTop36.ToList();
                    @for(int i=1;i<9&&i<list.Count;i++){
                        <li>
                            <dl>
                                <!-- 卡片的上班部分 -->
                                <dd>
                                    <a href="Brand/Index/@Base64.ObjectToBase64(new { id = list[i].BrandID })" target="_blank">
                                        <img src="@string.Format("{0}/{1}",brand.cyt369.com.utility.SystemSettingService.Instance.BrandInternalBucket.HttpURL,list[i].Brand.BrandImages[0].ImagePath)" alt="">
                                    </a>
                                </dd>
                                <!-- 卡片的下半部分 -->
                                <dt>
                                    <p class="p1">
                                        <a href="Brand/Index/@Base64.ObjectToBase64(new { id = list[i].BrandID })" target="_blank">@list[i].Brand.Name</a>
                                    </p>
                                    <p class="p2">
                                        <span>@brand.cyt369.com.MODELS.BrandHelper.GetAmountString(list[i].Brand.Amount)</span>
                                        <a href="Brand/Index/@Base64.ObjectToBase64(new { id = list[i].BrandID })" target="_blank">加盟</a>
                                    </p>
                                </dt>
                            </dl>
                        </li>
                    }
                }
            </ul>
        </div>
    </div>
    <!-- 商家图标列表样式 -->
    <div class="hot-content-two clear">
        <!-- 投资金额筛选部分 -->
        <div class="hot-content-two-title">
            <span>投资金额</span>
            <a href="~/Search/Index/@Base64.ObjectToBase64(new {  page=1,amount=1 })" target="_blank">5万以下</a>
            <a href="~/Search/Index/@Base64.ObjectToBase64(new {  page=1,amount=2 })" target="_blank">5-10万</a>
            <a href="~/Search/Index/@Base64.ObjectToBase64(new {  page=1,amount=3 })" target="_blank">10-20万</a>
            <a href="~/Search/Index/@Base64.ObjectToBase64(new {  page=1,amount=4 })" target="_blank">20-50万</a>
            <a href="~/Search/Index/@Base64.ObjectToBase64(new {  page=1,amount=5 })" target="_blank">50-100万</a>
            <a href="~/Search/Index/@Base64.ObjectToBase64(new {  page=1,amount=6 })" target="_blank">100万以上</a>
        </div>
        <!-- 投资商的图标列表部分 -->
        <div class="hot-content-two-list">
            <ul>
                  @if (hotBrandTop36 != null)
                {
                    var list = hotBrandTop36.ToList();
                    @for (int i = 9; i < 36 && i < list.Count; i++)
                    {
                        <li>
                            <a href="Brand/Index/@Base64.ObjectToBase64(new { id = list[i].BrandID })" target="_blank">
                                <img src="@string.Format("{0}/{1}",brand.cyt369.com.utility.SystemSettingService.Instance.BrandInternalBucket.HttpURL,list[i].Brand.BrandImages[0].ImagePath)" alt="" style="display: inline-block;">
                            </a>
                        </li>
                    }
                }
            </ul>


        </div>
    </div>
</div>